import createAPI from '@/utils/request'

export const getListApi = (data) => createAPI(`/truck/page`, 'get', data)

// 获取车辆类型下拉
export const getCarTypeList = data => createAPI(`/truckType/simple`, 'get', data)
// 停用车辆列表
export const getTruckListInDriver = data => createAPI(`/unWorkingTrucks`, 'get', data)
// 启用车辆列表
export const getWorkingTrucks = data => createAPI(`/workingTrucks`, 'get', data)
// 添加车辆
export const truckTypeAdd = data => createAPI(`/truck`, 'post', data)
// 获取车辆详情-基本信息
export const truckTypeDetail = data => createAPI(`/truck/${data}`, 'get', data)
